DISCUSSION
The
ATSUGetTextHighlight function determines the highlight region for a range of text. It does not highlight the text.
When there are discontiguous highlighting regions, the structure passed back in the
oHighlightRegion parameter is made up of multiple components. The
rgnBBox field of the structure represents the bounding box around the entire area of discontiguous highlighting. In ATSUI 1.1, the maximum number of components that can be passed back is 31; in version 1.2, the maximum is 127.
ATSUGetTextHighlight uses the previously set line ascent and descent values to calculate the height of the highlight region. If these values have not been set for the line,
ATSUGetTextHighlight uses the line ascent and descent values set for the text layout object containing the line. If these are not set, it uses the default values.